import {request,METHOD} from "@/utils/request.js"
import serverName from "@/serverName";

export function login(data){
	return request({
		url: serverName.ums + "/user/login",
		method: METHOD.POST,
		timeout: 20000,
		data: data
	})
}

export function logout() {
    return request({
        url: serverName.ums + "/user/loginOut",
        method: METHOD.POST
    })
}
export function getInfo() {
    return request({
        url: serverName.ums + "/user/getUserInfo",
        method: METHOD.GET,
    })
}
